package com.github.gaojh.mvc.route;

/**
 * @author gaojh
 * @since 2020/3/24
 */
public class RouterUtil {
    private static Router router = new FlyingRouter();

    public static void addRouter(RouteInfo routeInfo){
        router.addRouteInfo(routeInfo);
    }

    public static RouteInfo getRouter(String requestPath){
        return router.getRouteInfo(requestPath);
    }
}
